import unittest

"""
 @author adun
 @date 2020/10/25 0:04
"""


class MyTestCase(unittest.TestCase):
    def test_something(self):
        self.assertEqual(True, False)


    def test_jiujiu(self):
        for i in range(1, 10):
            for j in range(1, i + 1):
                result = i * j
                res = "{1}*{0}={2}"
                print(res.format(i, j, result), end="\t")
            print()

    # 倒置
    def test_invert_jiujiu(self):
        for i in range(1,10):
            for k in range(1,i):
                print(end="\t\t")
            for j in range(i,10):
                result = i * j
                res = "{0}*{1}={2}"
                print(res.format(i, j, result), end="\t")
            print()

    def test_print_for(self):
        for i in range(1,10):
            print(i)
            print(type(i))
            print(type(i)==int)
            print(isinstance(i,int))
            print(type(i))





if __name__ == '__main__':
    unittest.main()
